package com.equdao.car_violation_inquiry.service.impl;

import com.equdao.car_violation_inquiry.dao.BasicCarDaoMapper;
import com.equdao.car_violation_inquiry.pojo.BasicCarDO;
import com.equdao.car_violation_inquiry.service.BasicCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 杨忠强
 * @Date: 2018/6/28 17:51
 * @Description:
 */
@Service
public class BasicCarServiceImpl implements BasicCarService{


    @Autowired
    BasicCarDaoMapper basicCarDaoMapper;

    @Override
    public Integer saveBasicCar(List<BasicCarDO> list) {

        Integer integer = basicCarDaoMapper.saveBasicCar(list);


        return integer;
    }

    @Override
    public List<BasicCarDO> findBasicCarListByFlag(String flag, String status) {

        List<BasicCarDO> list = basicCarDaoMapper.findBasicCarListByFlag(flag,status);

        return list;
    }

    @Override
    public List<BasicCarDO> findExportBasicData(String flag) {
        List<BasicCarDO> list = basicCarDaoMapper.findExportBasicData(flag);


        return list;
    }

    @Override
    public List<BasicCarDO> findExportViolationBasicData(String flag) {
        List<BasicCarDO> list = basicCarDaoMapper.findExportViolationBasicData(flag);


        return list;
    }

    @Override
    public Integer updateBasicDataStatus(String flag) {
        Integer integer = basicCarDaoMapper.updateBasicDataStatus(flag);

        return integer;
    }

    @Override
    public Integer findBasicCarTotal(String flag) {
        Integer integer = basicCarDaoMapper.findBasicCarTotal(flag);

        return integer;
    }

    @Override
    public Integer findBasicCarCompleted(String flag, String status) {
        Integer integer = basicCarDaoMapper.findBasicCarCompleted(flag,status);
        return integer;
    }


}
